﻿namespace Game
{
    public class ComponentXChest : ComponentChest
    {
        public override int GetSlotCapacity(int slotIndex, int value)
        {
            if (slotIndex >= 0 && slotIndex < m_slots.Count && Terrain.ExtractContents(value) != 319)
            {
                return BlocksManager.Blocks[Terrain.ExtractContents(value)].GetMaxStacking(value);
            }

            return 0;
        }
    }
}